package com.portal.web.action.system.role;

import net.sf.json.JSONArray;
import com.portal.web.action.BaseAction;

/**
 * 获取角色权限信息
 * @author liu.qiao
 *
 */
public class GetRolePowerMenuTree extends BaseAction {
	private static final long serialVersionUID = 1L;
	private String roleCode;
	private JSONArray resultTree;//我要返回给页面的List

    public String execute() throws Exception {
    	try {
    		resultTree = this.getServiceContainer().getRoleService().getRolePowerMenuTree(roleCode);
		} catch (Exception e) {
			e.printStackTrace();
			return ERROR;
		}
        return SUCCESS;
    }

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public JSONArray getResultTree() {
		return resultTree;
	}

	public void setResultTree(JSONArray resultTree) {
		this.resultTree = resultTree;
	}
}
